<?php use_stylesheet('books.css') ?>
 
<?php slot('title', sprintf('Exemplaires disponibles pour %s', $book->getTitle())) ?>
 
<div class="category">
  <div class="feed">
    <a href="#"><?php echo $book->countInventory() ?>&nbsp;exemplaires</a>
  </div>
  <h1><?php echo $book ?></h1>
</div>
 
<?php include_partial('inventory/list', array('bookCopies' => $book->getActiveBooks(sfConfig::get('app_max_books_on_homepage')))) ?>

<a href="<?php echo url_for('book/edit?id='.$book->getId()) ?>">Edit</a>
&nbsp;
<a href="<?php echo url_for('book/index') ?>">List</a>